Skip to content

fix: buck2 build use a fix target#1328

Merged
benjamin-747 merged 2 commits into
gitmono-dev:mainfrom
yyjeqhc:fix_extract_buck_target
Aug 11, 2025
Merged

fix: buck2 build use a fix target#1328
benjamin-747 merged 2 commits into
gitmono-dev:mainfrom
yyjeqhc:fix_extract_buck_target

Conversation

@yyjeqhc

@yyjeqhc yyjeqhc commented Aug 11, 2025

Copy link
Copy Markdown
Contributor

Temporary: use a fixed build string to complete testing instead of using the parsed string.

@vercel

vercel Bot commented Aug 11, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mega ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 11, 2025 11:28am

This comment was marked as outdated.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR temporarily disables the dynamic buck2 target parsing functionality and uses a fixed build target for testing purposes. The main change replaces the download_and_get_buck2_targets function call with a hardcoded "//..." target string in the task handler.

  • Commented out the buck2 target extraction logic in the API handler
  • Added #[allow(dead_code)] attributes to unused functions
  • Applied code formatting improvements across multiple files

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

File Description
orion-server/src/api.rs Replaced dynamic buck2 target parsing with fixed "//..." target string
orion-server/src/buck2.rs Added dead_code attributes to unused functions and improved formatting
orion-server/src/scheduler.rs Applied code formatting improvements and reorganized imports
orion-server/src/main.rs Reordered module declarations for consistency

Comment thread orion-server/src/api.rs
// }
// };
// for now we do not extract from file, just use the fixed build target.
let target = "//...".to_string();

Copilot AI Aug 11, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hardcoded target string should be defined as a constant to improve maintainability and make it easier to change when the temporary fix is removed.

Suggested change
let target = "//...".to_string();
let target = FIXED_BUILD_TARGET.to_string();

Copilot uses AI. Check for mistakes.
Comment thread orion-server/src/api.rs
// ).into_response();
// }
// };
// for now we do not extract from file, just use the fixed build target.

Copilot AI Aug 11, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment should include a TODO or FIXME marker to indicate this is temporary code that needs to be reverted, making it easier to track technical debt.

Suggested change
// for now we do not extract from file, just use the fixed build target.
// TODO: for now we do not extract from file, just use the fixed build target.

Copilot uses AI. Check for mistakes.
@genedna
genedna requested a review from benjamin-747 August 11, 2025 12:04
@benjamin-747 benjamin-747 added this to the Web UI milestone Aug 11, 2025
@benjamin-747
benjamin-747 added this pull request to the merge queue Aug 11, 2025
Merged via the queue into gitmono-dev:main with commit 5b10864 Aug 11, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants